import request from '@/utils/request';
//获取所有教学设计
export function chapterInit(options) {
  return request({
    url: '/outline/section/getAll',
    method: 'post',
    data:options
  });
}

//预览单个教学设计
export function teachDesignPreview(id) {
  return request({
    url: '/bk/outline/design.preview',
    method: 'get',
    params:{
      outline_cla_id:id
    }
  });
}

//获取单个教学设计
export function teachDesignDetail(id) {
  return request({
    url: '/bk/outline/design',
    method: 'get',
    params:{
      outline_cla_id:id
    }
  });
}



// 更新或新增一个教学设计内容
export function upDesignDetail(options){

  return request({
    url:"/bk/outline/design",
    method:"post",
    data:options
  })

}

// 获取一个教学内容
export function getDesignData(id){
  return request({
    url:`/outline/section/get/${id}`,
    method:"get",
  })

}



